package com.accloud.service;

import java.util.List;

public class ACOTAUpgradeInfo {
    protected String currentVersion;
    protected List<ACOTAFileInfo> files;
    protected boolean isUpdate;
    protected int otaMode;
    protected int status;
    protected String targetVersion;
    protected String upgradeLog;

    public ACOTAUpgradeInfo(boolean isUpdate2, String upgradeLog2) {
        this.isUpdate = isUpdate2;
        this.upgradeLog = upgradeLog2;
    }

    public ACOTAUpgradeInfo(String currentVersion2, String targetVersion2, int otaMode2, String upgradeLog2, int status2, List<ACOTAFileInfo> files2) {
        this.currentVersion = currentVersion2;
        this.targetVersion = targetVersion2;
        this.otaMode = otaMode2;
        this.upgradeLog = upgradeLog2;
        this.status = status2;
        this.files = files2;
        if (!currentVersion2.equals(targetVersion2)) {
            this.isUpdate = true;
        }
    }

    public boolean isUpdate() {
        return this.isUpdate;
    }

    public String getCurrentVersion() {
        return this.currentVersion;
    }

    public String getTargetVersion() {
        return this.targetVersion;
    }

    public int getOtaMode() {
        return this.otaMode;
    }

    public int getStatus() {
        return this.status;
    }

    public String getUpgradeLog() {
        return this.upgradeLog;
    }

    public List<ACOTAFileInfo> getFiles() {
        return this.files;
    }

    public String toString() {
        return "ACOTAUpgradeInfo{isUpdate=" + this.isUpdate + ", currentVersion='" + this.currentVersion + "', targetVersion='" + this.targetVersion + "', otaMode=" + this.otaMode + ", upgradeLog='" + this.upgradeLog + "', status=" + this.status + ", files=" + this.files + '}';
    }
}
